﻿$(".permissions-group").live('click', function(event) 
{
    var id = $(this).attr("title");
    var checked = $(this).attr('checked');

    $("." + id).each(function() 
    {
        this.checked = checked;
    });
});